<template>
	<div>
		123
	</div>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		created() {
			//http://172.16.1.185:8080/xsecurity-web/controller/LoginJwt
			axios.get('http://172.16.1.185:8080/xsecurity-web/controller/LoginJwt', {
				params: {
					accountName:'admin',
        	accountPassword:'aaaaaa'
				}
			}).then(res => {
				var instance = axios.create({
					headers: {
						Authorization: window.SECURITY_TOKEN
					}
				});
				console.log(instance.default)
				return instance.get('http://172.16.1.185:8080/xsecurity-web/controller/LoginTest', {params: {accountName:'admin', accountPassword:'aaaaaa'}})
			}).then(res => {
				console.log(res)
			})
			
		}
	}
</script>

